<script lang="ts" setup>
  import { useSettingsStore } from '/@/store/modules/settings'

  const $pub: any = inject('$pub')

  const settingsStore = useSettingsStore()
  const { theme } = storeToRefs(settingsStore)

  const handleOpenTheme = () => {
    $pub('shop-vite-theme')
  }
</script>

<template>
  <span v-if="theme.showTheme">
    <vab-icon icon="brush-line" @click="handleOpenTheme" />
  </span>
</template>
